//
//  ImageTableViewCell.m
//  10-CustomCell-易车
//
//  Created by LL.F on 16/7/27.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#import "ImageTableViewCell.h"

@implementation ImageTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _SYView1 = [[SYView alloc] init];
        [self.contentView addSubview:_SYView1];
        _SYView2 = [[SYView alloc] init];
        [self.contentView addSubview:_SYView2];
        _SYView3 = [[SYView alloc] init];
        [self.contentView addSubview:_SYView3];
        _SYView4 = [[SYView alloc] init];
        [self.contentView addSubview:_SYView4];
    }
    return self;
}

- (void)layoutSubviews
{

    [super layoutSubviews];
    
    _SYView1.frame = CGRectMake(0, 0, self.frame.size.width / 4, self.frame.size.height);
     _SYView2.frame = CGRectMake(self.frame.size.width / 4, 0, self.frame.size.width / 4, self.frame.size.height);
     _SYView3.frame = CGRectMake(self.frame.size.width * 2 / 4, 0, self.frame.size.width / 4, self.frame.size.height);
     _SYView4.frame = CGRectMake(self.frame.size.width * 3 / 4, 0, self.frame.size.width / 4, self.frame.size.height);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
